#include "mkcore.h"
#include "mksettings.h"
#include "mkfilesettings.h"

MKCore *MKCore::pCore = 0;

MKCore *MKCore::instance()
{
	if (!pCore)
	{
		pCore = new MKCore;
		pCore->init();
	}
	return pCore;
}

MKSettings *MKCore::settings()
{
	if (pSettings)
	{
		return pSettings;
	}

	pSettings = (MKSettings*)(new MKFileSettings());

	return pSettings;
}

MKCore::MKCore(QObject *parent) : QObject(parent), pSettings(0)
{
}

MKCore::~MKCore()
{
	if (pSettings)
	{
		delete pSettings;
	}
}

void MKCore::init()
{
}
